accessible: Add a way to hide accessibles
authorMatthias Clasen <mclasen@redhat.com>
Mon, 12 Oct 2020 20:22:52 +0000 (16:22 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 13 Oct 2020 01:43:17 +0000 (21:43 -0400)
commitd9adc1b5aaf3399cad9adfabd1a5dbc6803dbbcd
treee2fcc8ce91989fa637695bb25e887e58c17858ce
parent3bfb32e699cb7b230382fec5e2058722d3a57515
accessible: Add a way to hide accessibles

Similar to gtk_widget_should_layout(), add a
gtk_accessible_should_present() function that backends can
use to determine whether an accessible should be presented
or not.

Ways to make a widget not presented in a11y:
- hide the widget
- set its role to NONE
- make it have a NULL AT context

We will use this in future to hide the GtkText inside
an entry, since the Text implementation will be done
by the wrapper.
gtk/gtkaccessible.c
gtk/gtkaccessibleprivate.h